import $http from "axios"

// 因为这里是export暴露的 要解构
import {axioslink} from "@/api/index.js"


let swipem = {
    state: {
        linkdata:""
    },
    getters: {
    },
    mutations: {
        UP_DATA(state,payload){
            state.linkdata=payload.data
          }
    },
    actions: {
        LINK_DATA_BB(context){
            axioslink().then((ok)=>{
                // console.log(ok.data.data);
                context.commit("UP_DATA",{data:ok.data.data})
                
            })
        },
}
}

export default swipem